equation for magnetic field and circular motion